]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: force user list and prompt to be the same width
authorRay Strode <rstrode@redhat.com>
Wed, 26 Jun 2013 16:36:10 +0000 (12:36 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 12 Jul 2013 18:38:40 +0000 (14:38 -0400)
js/gdm/loginDialog.js

index 57b6019a364b91c7efb411158fbe418e0f548a2f..459ec39704522285d4aa53a0d956fab6127f3987 100644 (file)
@@ -479,7 +479,11 @@ const LoginDialog = new Lang.Class({
         this._promptBox.add_constraint(new Clutter.AlignConstraint({ source: this.actor,
                                                                      align_axis: Clutter.AlignAxis.BOTH,
                                                                      factor: 0.5 }));
+
         this.actor.add_child(this._promptBox);
+        this._userList.actor.add_constraint(new Clutter.BindConstraint({ source: this._promptBox,
+                                                                         coordinate: Clutter.BindCoordinate.WIDTH }));
+
         this._promptUser = new St.Bin({ x_fill: true,
                                         x_align: St.Align.START });
         this._promptBox.add(this._promptUser,